import time

'''
while True:
	for i in range(100000):
		pass
	time.sleep(0.01)
'''

f = open('/proc/stat')
data = f.readline().split(' ')
print 100.0 *(int(data[2]) + int(data[3]) + int(data[4])) / (int(data[2]) + int(data[3]) + int(data[4]) + int(data[5]))
print data


